#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

	int main()
{
/*	
 *	行缓冲	
	printf("Before while()\n");

	while(1);
	
	printf("After while()\n");
*/
	int i = 0;
	printf("Before while()");
	fflush(NULL);
	while(1)
	{
		i++;
		fflush(stdout);
		sleep(1);
		printf("%d ",i);	
	}
	printf("After while()");





	exit(0);
}
